import Vue from 'vue';
import VueRouter from 'vue-router';
import login from '../components/login/login.vue';
import agreement from '../components/login/agreement'
import index from '../components/index/index.vue';
import survey from '../components/index/survey.vue';
import surveyDetail from '../components/index/surveyDetail.vue';
import loginIndex from '../components/index/loginIndex.vue';

Vue.use(VueRouter);

const routes = [
  { path: '/', component: index },
  { path: '/login', component: login, props: true },
  { path: '/agreement', component: agreement, props: true },
  { path: '/survey', component: survey, props: true },
  { path: '/surveyDetail', component: surveyDetail, props: true },
  { path: '/loginIndex', component: loginIndex, props: true },
  
];

const router = new VueRouter({
  mode: 'hash',
  routes

});

export default router;